package inherit.homework4;

public class Employee extends Person {
    /**
     *  （2）Employee类中的属性有：办公室office（String类型），工资salary（double类型），受雇日期hiredate（String类型）
     */
    private String office;
    private double salary;
    private String hiredate;

    public Employee() {
    }

    public Employee(String name, String telphone, String email, String office, double salary, String hiredate) {
        super(name, telphone, email);
        this.office = office;
        this.salary = salary;
        this.hiredate = hiredate;
    }

    public String getOffice() {
        return office;
    }

    public void setOffice(String office) {
        this.office = office;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public String getHiredate() {
        return hiredate;
    }

    public void setHiredate(String hiredate) {
        this.hiredate = hiredate;
    }
}